package com.huike.clues.mapper;

import com.huike.clues.domain.vo.ClueChangeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;

@Mapper
public interface ClueMapper {

    /**
     * 查询线索总数
     * @param beginTime
     * @param endTime
     * @return
     */
    Integer getCluesNums(@Param("beginTime") LocalDateTime beginTime, @Param("endTime") LocalDateTime endTime);

    /**
     * 查询转化线索数
     * @param beginTime
     * @param endTime
     * @return
     */
    List<ClueChangeVO> getSalesStatistic(@Param("beginTime") LocalDateTime beginTime,@Param("endTime") LocalDateTime endTime);

    //Integer getCluesNums(HashMap<String, Object> map);

}
